<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>myOrderCar</title>
    <link rel="stylesheet" href="assets/css/public.css">
    <link rel="stylesheet" href="assets/css/myOrder.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
</head>

<body>
    <div class="wrap">
        <div class="IndexBox">
            <p class="titles">申领车明细</p>
            <div class="line"></div>
            <div class="main2-head">
                <table class="table">
                    <thead>
                        <tr>
                            <th>
                                <p>全选</p>
                            </th>
                            <th>
                                <p>行号</p>
                            </th>
                            <th>
                                <p>商品图片</p>
                            </th>
                            <th>
                                <p>商品编码</p>
                            </th>
                            <th>
                                <p>商品名称</p>
                            </th>
                            <th>
                                <p>商品规格</p>
                            </th>
                            <th>
                                <p>包装单位</p>
                            </th>
                            <th>
                                <p>参考单价（元）</p>
                            </th>
                            <th>
                                <p>数量</p>
                            </th>
                            <th>
                                <p>金额</p>
                            </th>
                            <th>
                                <p>操作</p>
                            </th>
                        </tr>
                    </thead>
                    <tbody class="table-text">
                        <tr class="detailBox detailBox2 ">
                            <td class="main2-line-height">
                                <input type="checkbox">
                            </td>
                            <td class="main2-line-height">01</td>
                            <td style="width:130px">
                                <div class="myorder-img">
                                    <img src="assets/images/detail1.png" alt="">
                                </div>
                            </td>
                            <td class="main2-line-height">0100002</td>
                            <td class="main2-line-height">
                                光电12导心电图用记录纸有格 长效热敏纸210*140-20M
                            </td>
                            <td class="main2-line-height">210*140</td>
                            <td class="main2-line-height">卷</td>
                            <td class="main2-line-height price"><span>15</span></td>
                            <td class="main2-line-height number"><span>150</span></td>
                            <td class="main2-line-height total"><span></span></td>
                            <td>
                                <div class="flex-center detailBox detailBox2 ">
                                    <div class="operation myorderCar-img delete-text">
                                        <img src="assets/images/delete.png" alt="">
                                        <p>删除</p>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr class="detailBox detailBox2 ">
                            <td class="main2-line-height">
                                <input type="checkbox">
                            </td>
                            <td class="main2-line-height">02</td>
                            <td style="width:130px">
                                <div class="myorder-img">
                                    <img src="assets/images/detail2.png" alt="">
                                </div>
                            </td>
                            <td class="main2-line-height">0100003</td>
                            <td class="main2-line-height">
                                急救夹板 高分子卷式夹板 医用骨折 固定板 支骨板
                            </td>
                            <td class="main2-line-height">210*140</td>
                            <td class="main2-line-height">片</td>
                            <td class="main2-line-height price"><span>30</span></td>
                            <td class="main2-line-height number"><span>600</span></td>
                            <td class="main2-line-height total"><span></span></td>
                            <td>
                                <div class="flex-center detailBox detailBox2 ">
                                    <div class="operation myorderCar-img  delete-text">
                                        <img src="assets/images/delete.png" alt="">
                                        <p>删除</p>
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr class="detailBox detailBox2 ">
                            <td class="main2-line-height">
                                <input type="checkbox">
                            </td>
                            <td class="main2-line-height">03</td>
                            <td style="width:130px">
                                <div class="myorder-img">
                                    <img src="assets/images/detail3.jpg" alt="">
                                </div>
                            </td>
                            <td class="main2-line-height">0100004</td>
                            <td class="main2-line-height">
                                支原体鉴定药敏试剂盒微生物检验法
                            </td>
                            <td class="main2-line-height">210*140</td>
                            <td class="main2-line-height">盒</td>
                            <td class="main2-line-height price"><span>20</span></td>
                            <td class="main2-line-height number"><span>400</span></td>
                            <td class="main2-line-height total"><span></span></td>
                            <td>
                                <div class="flex-center detailBox detailBox2 ">
                                    <div class="operation myorderCar-img delete-text">
                                        <img src="assets/images/delete.png" alt="">
                                        <p>删除</p>
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>

    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.js"></script>
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script>
        $(function () {
            $(".price").each(function () {
                for (var i = 0; i < $(this).length; i++) {
                    var total = 0;
                    var price = $(this).children("span").text();   
                    var number = $(this).parent().find(".number").children("span").text();
                    total=price * number;
                    $(this).parent().find(".total").children("span").text(total);
                }

            })
        })
    </script>
</body>

</html>